<?php
namespace app\home\controller;
use think\Controller;
use think\Db;
use think\Session;

class Account extends Controller{

	//输出登陆页面
	public function login()
	{
		return $this->view->fetch('Account/login');
	}

	public function land()
	{
		$data=input('post.');
		$line=Db::table('manager')->where('username',$data['username'])
		->where('pwd',$data['password'])->find();
		if($line){
			session('mid',$line['id']);
			return true;
		}else{
			return false;	
		}

	}




}